package homework.api01.apitest01;

public class StartsWithDemo {
    public static void main(String[] args) {
        String str = "www.tedu.cn";
        boolean starts = str.startsWith("ttt");
        System.out.println(starts);//false

        boolean ends = str.endsWith("COM");
        System.out.println(ends);//false

        boolean starts1 = str.startsWith("www");
        System.out.println(starts1);//true
    }
}
